package com.zhao;

import com.zhao.until.ZhaoRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ClassName:DeptConsumer_80
 * @author:赵培舒
 * @date:Created in 2021/4/18 16:47
 * @Email:stevezhao@nyist.edu.cn
 * @description:消费者主程序
 * @version:1.0
 */
//RIbbon和Eureka整合后，客服端可以直接使用，不关心IP地址和端口号
@SpringBootApplication
@EnableEurekaClient //开启Eureka
//再启动的时候就可以加载我们自定义的类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = ZhaoRule.class) //-- 自定义的轮询规则
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
